check if checkbox is checked jquery

102

jquery checkbox checked value -

if ($('#check_id').is(":checked"))
{
  // it is checked
}

jquery detect when a checkbox is checked -

$(".checkbox").change(function() {
    if(this.checked) {
        //Do stuff
    }
});

jquery check if checkbox is not checked -

if (!$("#checkboxID").is(":checked")) {
    // do something if the checkbox is NOT checked
}

check if checkbox is checked jquery -

var $boxes = $('input[name=thename]:checked');

Comments

Submit
0 Comments